package com.health.medicine.model.dto.transporter;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.health.medicine.model.enums.TransportVehiclesEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author zhexueqi
 * @ClassName TransPorterRequest
 * @since 2024/8/31    22:18
 */
@Data
public class TransportVehiclesRequest {


    /**
     * 关联运输单位的ID
     */
    @NotNull(message = "不能为空")
    @Min(value = 1, message = "最小为1")
    @Schema(description = "关联运输单位的ID")
    private Long transportUnitId;

    /**
     * 车牌号
     */
    @NotBlank(message = "不能为空")
    @Schema(description = "车牌号")
    private String vehicleNumber;

    /**
     * 车辆类型
     */
    @NotBlank(message = "不能为空")
    @Schema(description = "车辆类型")
    private String vehicleType;

    /**
     * 运输容量
     */
    @NotNull(message = "不能为空")
    @Min(value = 1, message = "最小为1")
    @Schema(description = "运输容量")
    private Integer capacity;

    /**
     * 上次维护日期
     */
    @NotNull(message = "不能为空")
    @Schema(description = "上次维护日期")
    private LocalDateTime lastMaintenanceDate;

    /**
     * 车辆状态
     */
    @NotNull(message = "不能为空")
    @Schema(description = "车辆状态, 可用，维修, 报废")
    private String vehicleStatus;
}
